<script type="text/javascript">
    function deletechecked()
    {
        var answer = confirm("Bạn có thật sự muốn xóa dữ liệu?");
        return answer;
    } 
    
    function checksubmit(){
        if(deletechecked()){
            document.getElementById("mainform").submit();
        }
    }
</script>
<div id="content-outer">
    <div id="content">
        <div id="page-heading">
            <h1>Danh sách bài viết</h1>
        </div>
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized"><img src="../../../public/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;</td>
                <th class="topright"></th>
                <th rowspan="3" class="sized"><img src="../../../public/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <form id="mainform" action="action.php?act=5" method="POST">
                        <div id="content-table-inner">
                            <div id="table-content">

                                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                    <tr>
                                        <th class="table-header-check"><a id="toggle-all" ></a> </th>
                                        <th class="table-header-repeat-new line-left minwidth-1"><a href="">Title</a></th>
                                        <th class="table-header-repeat-new line-left minwidth-1"><a href="">Author</a></th>
                                        <th class="table-header-repeat-new line-left"><a href="">Categories</a></th>
                                        <th class="table-header-repeat-new line-left"><a href="">Comment</a></th>
                                        <th class="table-header-repeat-new line-left" style="width: 30px;"><a href="">Date</a></th>
                                        <th class="table-header-repeat-new line-left"><a href="">Active</a></th>
                                        <th class="table-header-repeat-new line-left"><a href="">Action</a></th>
                                    </tr>
                                    <!-- BEGIN list_new -->
                                    <!-- #BEGIN list_new -->
                                    <tr>
                                        <td>{check_box}</td>
                                        <td>{title}</td>
                                        <td>{author}</td>
                                        <td>{categories}</td>
                                        <td>{comment}</td>
                                        <td>{date}</td>
                                        <td>{active}</td>
                                        <td class="options-width">
                                            {action}    
                                        </td>
                                    </tr>
                                    <!-- #END list_new -->
                                    <!-- END list_new -->

                                </table>

                            </div>

                            <div id="actions-box">
                                <a href="" class="action-slider"></a>
                                <div id="actions-box-slider">
                                    <a href="add.php" class="action-edit">Add</a>
                                    <a href="#" class="action-delete" onclick="checksubmit('Bạn có thật sự muốn xóa hết');">Delete All</a>
                                </div>
                                <div class="clear"></div>
                            </div>

                            <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
                                <tr>
                                    <td>
                                        {page_par_left}
                                        {page_left}
                                        {page-info}
                                        {page-right}
                                        {page-far-right}
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>

                        </div>
                        
                    </form>
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;</td>
                <th class="sized bottomright"></th>
            </tr>
        </table>
        <div class="clear">&nbsp;</div>

    </div>

    <div class="clear">&nbsp;</div>
</div>
